home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _0E6086CF8CA1458691777663F3337B8C < prev    next >
Encoding:
Text File  |  2004-06-16  |  5.0 KB  |  224 lines

  1. !include("surface.def")
  2.  
  3. shader()
  4. {// >=gffx
  5.     SurfaceID(SRF_GROUND)
  6.     Shaderquality(3)
  7.     Cull("ccw")
  8.     pass()
  9.     {
  10.         Pixelshader("TerrainSnow14.psh")
  11.  
  12.         !include("__TerrainColormap.mtt")
  13.         !include("__TerrainDetail1.mtt")
  14.         !include("__CubeMap.mtt")
  15.         !include("__DetailsMask.mtt")
  16.         !include("__Clouds.mtt")
  17.  
  18.     }
  19.  
  20.     lightpass()
  21.  
  22.     !include("SpotShadowmap.mtt")
  23.     !include("SpotTerrainSnow14.mtt")
  24. }
  25.  
  26. shader()
  27. {// >=gf3
  28.     SurfaceID(SRF_GROUND)
  29.     Shaderquality(3)
  30.     Cull("ccw")
  31.     pass()
  32.     {
  33.         Pixelshader("TerrainSnow11_1.psh")
  34.  
  35.         !include("__TerrainColormap.mtt")
  36.         !include("__TerrainDetail1.mtt")
  37.         !include("__DetailsMask.mtt")
  38.         !include("__CubeMap.mtt")
  39.  
  40.     }
  41.  
  42.     pass()
  43.     {
  44.         Pixelshader("TerrainSnow11_2.psh")
  45.  
  46.         !include("__TerrainColormap.mtt")
  47.         !include("__Clouds.mtt")
  48.         DepthFunc("lequal", 0)
  49.         BlendFunc("zero", "inv_src_color")
  50.         BlackFog()
  51.     }
  52.  
  53.     lightpass()
  54.  
  55.     !include("SpotShadowmap.mtt")
  56.     !include("omni_2TMU.mtt")
  57.     !include("SpotTerrainSnow.mtt")
  58. }
  59.  
  60. shader()
  61. {// >=gf3
  62.     SurfaceID(SRF_GROUND)
  63.     Shaderquality(2)
  64.     Cull("ccw")
  65.     pass()
  66.     {
  67.         Pixelshader("TerrainSnowLow.psh")
  68.  
  69.         !include("__TerrainColormap.mtt")
  70.         !include("__TerrainDetail1.mtt")
  71.         !include("__DetailsMask.mtt")
  72.         !include("__CubeMap.mtt")
  73.     }
  74.  
  75.     lightpass()
  76.  
  77.     !include("SpotShadowmapLow.mtt")
  78.     !include("SpotTerrainSnow.mtt")
  79. }
  80.  
  81. shader()
  82. {// >=gf3
  83.     SurfaceID(SRF_GROUND)
  84.     Shaderquality(1)
  85.     Cull("ccw")
  86.  
  87.     pass()
  88.     {
  89.         Pixelshader("TerrainSnowVeryLow.psh")
  90.  
  91.         !include("__TerrainColormap.mtt")
  92.         !include("__TerrainDetail1.mtt")
  93.  
  94.     }
  95.  
  96.     lightpass()
  97.  
  98.     !include("SpotShadowmapVeryLow.mtt")
  99.     !include("SpotTerrainSnow.mtt")
  100.  
  101. }
  102.  
  103.  
  104. shader()
  105. {
  106.     SurfaceID(SRF_GROUND)
  107.     Cull("ccw")
  108.     Shaderquality(1)
  109.     pass()
  110.     {
  111.         tmu()
  112.         {
  113.             TexGen("planar")
  114.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  115.             texture()
  116.             {
  117.                 Image(%colortexture)
  118.                 addressfunc("clamp", "clamp", "clamp")
  119.             }
  120.             ColorOp("mul_add", "texture_a", "inv_tfactor_a", "tfactor_a")
  121.         }
  122.  
  123.         tmu()
  124.         {
  125.             TexGen("world_position")
  126.             TexMtxDirPosScale(1.0, 0.0, 0.0, 0, 0, 0, %waterscale, %waterscale, %waterscale)
  127.             texture()
  128.             {
  129.                 Image("WaterDeep_P.dds")
  130.                 filtering("linear_no_mip")
  131.                 addressfunc("wrap", "clamp", "clamp")
  132.  
  133.             }
  134.             ColorOp("mul", "current", "tfactor", "current")
  135.             AlphaOp("arg1", "texture", "tfactor", "current")
  136.         }
  137.  
  138.         tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)
  139.  
  140.     }
  141.  
  142.     lightpass()
  143.  
  144.     !include("SpotShadowmapVeryLow.mtt")
  145.     !include("spot_spotmap.mtt")
  146.     pass()
  147.     {
  148.         tmu()
  149.         {
  150.             TexGen("planar")
  151.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  152.             texture()
  153.             {
  154.                 Image(%colortexture)
  155.                 addressfunc("clamp", "clamp", "clamp")
  156.             }
  157.             ColorOp("arg1", "inv_texture", "current", "current")
  158.         }
  159.  
  160.         DepthFunc("lequal", 0)
  161.         BlendFunc("zero", "inv_src_color")
  162.         BlackFog()
  163.     }
  164.  
  165.     pass()
  166.     {
  167.         tmu()
  168.         {
  169.             TexGen("planar")
  170.             TexMod("scale", "const", %detailsize, 0, 0, "const", %detailsize, 0, 0)
  171.             texture()
  172.             {
  173.                 Image(%detail1texture)
  174.             }
  175.             ColorOp("arg1", "inv_texture_a", "current", "current")
  176.         }
  177.         DepthFunc("lequal", 0)
  178.         BlendFunc("zero", "inv_src_color")
  179.         BlackFog()
  180.     }
  181.  
  182.  
  183. }
  184.  
  185. shader()
  186. {//gf2
  187.     SurfaceID(SRF_GROUND)
  188.     Cull("ccw")
  189.     Shaderquality(0)
  190.     pass()
  191.     {
  192.         tmu()
  193.         {
  194.             TexGen("planar")
  195.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  196.             texture()
  197.             {
  198.                 Image(%colortexture)
  199.                 addressfunc("clamp", "clamp", "clamp")
  200.             }
  201.             ColorOp("mul", "texture", "tfactor", "current")
  202.             AlphaOp("mul_add", "texture", "inv_tfactor", "tfactor")
  203.         }
  204.         tmu()
  205.         {
  206.             TexGen("planar")
  207.             TexMod("scale", "const", %detailsize, 0, 0, "const", %detailsize, 0, 0)
  208.             texture()
  209.             {
  210.                 Image(%detail1texture)
  211.             }
  212.             ColorOp("mul", "texture_a", "current", "current")
  213.             AlphaOp("arg2", "texture", "current", "current")
  214.         }
  215.         BlendFunc("src_alpha", "zero")
  216.         tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)
  217.     }
  218.     lightpass()
  219.     !include("SpotShadowmapVeryLow.mtt")
  220.     !include("spot_spotmap.mtt")
  221. }
  222.  
  223.  
  224.